#!/bin/sh

chn=$1

cp -r tmp $chn
grep -v market_channels tmp/channels.properties > $chn/channels.properties
echo market_channels=$chn >> $chn/channels.properties
cd $chn
ant -q -S
cp app-release/*.apk ../
cd ..
rm -r $chn
